@echo off

set CARGO_LOCAL_REGISTRY_PATH="%CARGO_LOCAL_REGISTRY%"

if  %CARGO_LOCAL_REGISTRY_PATH% == "" (
echo  system variable CARGO_LOCAL_REGISTRY is not defined ! 
echo  please check again!"
) else (
cargo local-registry --sync Cargo.lock  --no-delete %CARGO_LOCAL_REGISTRY_PATH%

) 




@pause
